package com.po;

/**
 * AbstractOpMetadataId entity provides the base persistence definition of the
 * OpMetadataId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractOpMetadataId implements java.io.Serializable {

	// Fields

	private String metaId;
	private String objId;

	// Constructors

	/** default constructor */
	public AbstractOpMetadataId() {
	}

	/** full constructor */
	public AbstractOpMetadataId(String metaId, String objId) {
		this.metaId = metaId;
		this.objId = objId;
	}

	// Property accessors

	public String getMetaId() {
		return this.metaId;
	}

	public void setMetaId(String metaId) {
		this.metaId = metaId;
	}

	public String getObjId() {
		return this.objId;
	}

	public void setObjId(String objId) {
		this.objId = objId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractOpMetadataId))
			return false;
		AbstractOpMetadataId castOther = (AbstractOpMetadataId) other;

		return ((this.getMetaId() == castOther.getMetaId()) || (this
				.getMetaId() != null
				&& castOther.getMetaId() != null && this.getMetaId().equals(
				castOther.getMetaId())))
				&& ((this.getObjId() == castOther.getObjId()) || (this
						.getObjId() != null
						&& castOther.getObjId() != null && this.getObjId()
						.equals(castOther.getObjId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMetaId() == null ? 0 : this.getMetaId().hashCode());
		result = 37 * result
				+ (getObjId() == null ? 0 : this.getObjId().hashCode());
		return result;
	}

}